/**
 * CommonRouter是所有Admin路由，以及侧边栏的所有导航
 */
import { JsonRoute } from "./index";
import { VideoCameraOutlined, ThunderboltOutlined } from "@ant-design/icons-vue";
import DashBoard from "@/views/@Admin/DashBoard/DashBoard.vue";
const CommonRouter: Array<JsonRoute> = [
  {
    path: "DashBoard",
    name: "DashBoard",
    title: "图表示例",
    icon: <ThunderboltOutlined />,
    component: () => import("../views/@Admin/DashBoard/DashBoard.vue"),
  },
  {
    path: "Example",
    name: "Example",
    title: "路由示例",
    icon: <ThunderboltOutlined />,
    redirect: { name: "Example1" },
    component: () => import("../views/@Admin/Example/Example.vue"),
    children: [
      {
        path: "Example1",
        name: "Example1",
        title: "示例一",
        icon: <VideoCameraOutlined />,
        component: () => import("../views/@Admin/Example/Example1.vue"),
      },
      {
        path: "Example2",
        name: "Example2",
        title: "示例二",
        icon: <VideoCameraOutlined />,
        redirect: { name: "Example11" },
        component: () => import("../views/@Admin/Example/Example2.vue"),
        children: [
          {
            path: "Example11",
            name: "Example11",
            title: "示例一1",
            icon: <VideoCameraOutlined />,
            component: () => import("../views/@Admin/Example/Example1.vue"),
          },
          {
            path: "Example21",
            name: "Example21",
            title: "示例二1",
            icon: <VideoCameraOutlined />,
            component: () => import("../views/@Admin/Example/Example2.vue"),
          },
        ],
      },
      {
        path: "Example3",
        name: "Example3",
        title: "示例三",
        icon: <VideoCameraOutlined />,
        component: () => import("../views/@Admin/Example/Example3.vue"),
      },
      {
        path: "Example4",
        name: "Example4",
        title: "示例四",
        icon: <VideoCameraOutlined />,
        component: () => import("../views/@Admin/Example/Example4.vue"),
      },
      {
        path: "Example5",
        name: "Example5",
        title: "示例五",
        icon: <VideoCameraOutlined />,
        component: () => import("../views/@Admin/Example/Example5.vue"),
      },
    ],
  },
  {
    path: "TableExample",
    name: "TableExample",
    title: "表格示例",
    icon: <ThunderboltOutlined />,
    component: () => import("../views/@Admin/TableExample/TableExample.vue"),
  },
  {
    path: "UserWeb",
    name: "UserWeb",
    title: "实训造假",
    icon: <ThunderboltOutlined />,
    component: () => import("../views/@Admin/UserWeb/UserWeb.vue"),
    children: [
      {
        path: "LoginActionAA",
        name: "LoginActionAA",
        title: "登录造假",
        icon: <ThunderboltOutlined />,
        component: () => import("../views/@Admin/UserWeb/LoginAction.vue"),
      },
      {
        path: "RegisterActionAA",
        name: "RegisterActionAA",
        title: "注册造假",
        icon: <ThunderboltOutlined />,
        component: () => import("../views/@Admin/UserWeb/RegisterAction.vue"),
      },
    ],
  },
  {
    path: "DangDang",
    name: "DangDang",
    title: "当当书城",
    icon: <ThunderboltOutlined />,
    component: () => import("../views/@Admin/DangDang/DangDang.vue"),
    children: [
      {
        path: "RegisterAction",
        name: "RegisterAction",
        title: "Register",
        icon: <ThunderboltOutlined />,
        component: () => import("../views/@Admin/DangDang/Register.vue"),
      },
      {
        path: "LoginAction",
        name: "LoginAction",
        title: "Login",
        icon: <ThunderboltOutlined />,
        component: () => import("../views/@Admin/DangDang/Login.vue"),
      },
      {
        path: "Main",
        name: "Main",
        title: "Main",
        icon: <ThunderboltOutlined />,
        component: () => import("../views/@Admin/DangDang/Main.vue"),
      },
      {
        path: "BookDetail",
        name: "BookDetail",
        title: "BookDetail",
        icon: <ThunderboltOutlined />,
        component: () => import("../views/@Admin/DangDang/BookDetail.vue"),
      },
      {
        path: "ShopCar",
        name: "ShopCar",
        title: "ShopCar",
        icon: <ThunderboltOutlined />,
        component: () => import("../views/@Admin/DangDang/ShopCar.vue"),
      },
    ],
  },
];
export default CommonRouter;
